<style scoped>
        .wl_first .bill {
        padding: 0px 30px;
         margin-bottom: 50px;
        }
        .wl_first .same .ivu-form-item {
        margin-bottom: 10px;
        }
        .wl_first  .same .ivu-col {
        margin-bottom: 5px;
        }
        .wl_first  .same .shangjiao {
        border: 1px solid #dedede;
        border-bottom: none;
        background-color: #f8f8f8;
        padding: 15px;
        }
    
        .wl_first  .same .shangjiaoCont {
        padding: 15px;
        border: 1px solid #dedede;
        margin-bottom: 20px;
        }
    
        .wl_first  .same  .xianzhong {
        margin-bottom: 40px;
        }
    
        .wl_first  .same .xianzhong tr td:nth-child(1) {
        width: 5%;
        }
        .wl_first  .same  .xianzhong tr td:nth-child(2) {
        width: 30%;
        }
        .wl_first .same .xianzhong tr td:nth-child(3) {
        width: 5%;
        }
        .wl_first  .same .xianzhong tr td:nth-child(4) {
        width: 20%;
        }
        .wl_first   .same  .xianzhong tr td:nth-child(5) {
        width: 20%;
        }
        .wl_first  .same .xianzhong tr td:nth-child(6) {
        width: 20%;
        }
        .wl_first  #footer{
            height: 80px;
            line-height: 80px;
            position: fixed;
            bottom: 0;
            z-index:100;
            text-align: center;
            background-color: #FFF;
            box-shadow: -1px -3px 2px #E3E3E3;
        }
      
    
    </style>
    <style>
        .form-box{
            padding: 20px;
        }
       
        /**
        解释css
        common-box-header 规定了包含头部的h3的固定样式
        common-box-body  对输入框和select,日期插件进行了封装
        */
        .common-box-header{
            background-color: #edf2f6;
            height: 50px;
            line-height: 50px;
            vertical-align: middle;
            padding-left: 20px;
            padding-right: 12px;
        }
        .common-box-header h3{
            display: inline-block;
            margin-right: 50px;
        }
        .ml5{
            margin-left: 5px;
        }
        .mt7{
            margin-top: 7px;
        }
        .mt20{
            margin-top: 20px;
        }
        .ml20{
            margin-left: 20px;
        }
        .mb15{
            margin-bottom:15px;
        }
    
        .ivu-btn{
            height: 36px;
            border-radius: 1px !important;
        }
        .ivu-btn.ivu-btn-circle{
            border-radius: 32px !important;
        }
        .common-box-body{
    
        }
        .common-form-body{
            padding-top: 25px;
            padding-bottom: 30px;
            margin-right: -15px;
            margin-bottom: -15px;
        }
        .common-box-body .ivu-form-item{
            padding-right: 15px;
        }
        .common-box-body .ivu-form-item label{
            /* float: left; */
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            border: 1px solid #bebebe;
            background-color: #fafafa;
            margin-right: -1px;
            border-right: none;
            border-top-left-radius: 2px;
            border-bottom-left-radius: 2px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
        .common-box-body .other1 label{
            border: none;
            padding-left: 0;
            padding-right: 0 !important;
            margin-right: 0;
        }
        .ivu-form-item-required.ivu-form-item label{
            color: #ef8411;
        }
        .ivu-form-item-required .ivu-form-item-label:before{
            color: #ef8411 !important;
        }
        .common-box-body .ivu-form-item .ivu-form-item-content{
            display: table-cell;
            *display:inline-block;
            width: 2000px;
        }
        .common-box-body .ivu-form-item label{
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            /* border: 1px solid #bebebe;    */
            background-color: #fafafa;
            margin-right: -1px;
            /* border-right: none; */
        }
        .common-box-body .ivu-form-item label.ivu-checkbox-group-item{
            border:none;
        }
        .common-box-body .ivu-form-item label.ivu-radio-group-item{
            border:none;
        }
        .common-box-body .ivu-form-item .ivu-form-item-content .ivu-input,.common-box-body .ivu-form-item .ivu-form-item-content .ivu-select-selection{
            height: 36px;
            border-radius: 0;
            border-top-right-radius: 2px;
            border-bottom-right-radius: 2px;
            border-color: #bebebe;
            outline: none;
        }
        .common-box-body .ivu-form-item .ivu-form-item-content .ivu-date-picker{
            display: block;
        }
        .common-box-body .ivu-select-single .ivu-select-selection .ivu-select-placeholder,.common-box-body  .ivu-select-single .ivu-select-selection .ivu-select-selected-value{
            height: 36px;
            line-height: 36px;
            padding-right: 36px;
        }
        .common-box-body .ivu-input[disabled], fieldset[disabled] .ivu-input{
            color: #000;
        }
        /* select */
        .common-box-body .ivu-select{
            position: relative;
    
        }
        .common-box-body .ivu-select:after,.common-box-body  .ivu-date-picker-rel:after{
            content: '';
            position: absolute;
            top: 1px;
            bottom: 1px;
            right: 1px;
            width: 35px;
            height: 34px;
            border-left: 1px solid #bebebe;
            background-color: #fafafa;
        }
        .common-box-body .ivu-select-selection{
            border: 1px solid #bebebe !important;
            border-radius:0 2px 2px 0!important;
            /* border-radius: 0px !important; */
            /* border-left:none !important; */
        }
        .common-box-body .ivu-select-arrow{
            right: 12px;
            z-index: 2;
        }
        .ivu-form-item-label{
            /*border:1px solid #BEBEBE;*/
            /*border-right: none;*/
        }
        .common-box-body .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab{
            background-color: #FFFFFF;
            color: #69ACF3;
            border-color: transparent;
        }
        .common-box-body .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active {
            color: #BEBEBE;
            border-color: #BEBEBE;
        }
    
    
        /*=======*/
        .input-select .ivu-select.ivu-select-single:after{
            width: 0;
            border: none;
        }
        .common-box-body .input-select .ivu-select-single .ivu-select-selection{
            border: none !important;
        }
        .common-box-body .input-select .ivu-input-group-prepend, .ivu-input-group-append{
            background-color: #fafafa;
            border: 1px solid #bebebe;
            border-right: none;
            border-radius: 3px;
        }
        .common-box-body .input-select .ivu-select-single .ivu-select-selection .ivu-select-placeholder, .common-box-body .input-select .ivu-select-single .ivu-select-selection .ivu-select-selected-value{
            padding-right: 24px;
        }
        .common-box-body .input-select .ivu-select-arrow{
            right: 8px;
        }
        .pro-action{
            padding-top: 25px;
        }
        .pro-person .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active{
            /* height: 45px;
            line-height: 45px; */
        }
        .modal-box .ivu-modal-footer{
            background-color: #f2f2f2;
        }
        .modal-footer{
            overflow: hidden;
            background-color: #f2f2f2;
            margin: -12px -18px;
            padding: 12px 18px;
        }
        .modal-footer .ivu-btn-ghost{
            background-color: #fff;
        }
        .modal-body{
            margin: -16px;
        }
        #footer{
            height: 80px;
            line-height: 80px;
            position: fixed;
            bottom: 0;
            z-index:100;
            text-align: center;
            background-color: #FFF;
            box-shadow: -1px -3px 2px #E3E3E3;
        }
        .huang{
            color: #FD9C05;
        }
    
        .tCenter{
            text-align: center;
        }
        .tRight{
            text-align: right;
        }
    
    
    
    
    
    
    
    
    
    
    
    
    
            /* 对于same的样式 */
        .wl_first .same .ivu-form-item-required .ivu-form-item-label:before{
                color: #ef8411 !important;
            } 
            .wl_first .same .ivu-form-item-label {
            text-align: left;
        display: block !important;
            }
    
            .wl_first .same .ivu-form-item-required .ivu-form-item-label {
            color: #ef8411;
            }
            .wl_first .same input.ivu-input,.ivu-select-selection{
                border-radius:2px !important;
            }
            .wl_first .same .ivu-form-item-error input.ivu-input{
            border-color: red !important;
        }
        
        .wl_first .same .ivu-form-item-content .ivu-form-item-error-tip{
                left:auto ;
                right: 5px !important;
                top:-28px;
            }
            .wl_first .same .ivu-form-item-content {
            margin-left: 0 !important;
            display: block !important;
            border: 1px solid #bebebe ;
            
            }
            
            .wl_first .same .ivu-input, .ivu-select-selection{
                border: none !important;
            }
            .wl_first  .same .ivu-input-icon , .ivu-select-selection {
            
            }
    
            .wl_first .same .ivu-col {
            padding: 0 10px;
            }
    
            .wl_first .same .ivu-select:after {
            right: 30px;
            }
    
            .wl_first .same .ivu-select-placeholder {
            padding-right: 32px;
            }
    
            .wl_first .same .ivu-select-arrow {
            right: 10px;
            }
    
            .wl_first .same .blue .ivu-icon-ios-search {
            background-color: #2c8bf0;
            color: #fff;
            }
    
            .wl_first .same  .peo {
            position: relative;
            }
    
            .wl_first .same .title {
            position: absolute;
            top: -33px;
            left: 57px;
            color: #b3b3b3;
            }
            /* .billTab {
                margin-top:40px;
            } */
    
            .wl_first  .billTab .ivu-tabs-tab {
            color: #3592f1;
            background-color: #fff !important;
            border-color: #fff !important;
            }
    
            .wl_first  .billTab .ivu-tabs-tab-active {
            color: #888888 !important;
            border: 1px solid #dddee1 !important;
            border-bottom: none !important;
            /* position: relative;
            top:-5px; */
            font-size:14px;
            
            }
        
            .wl_first  .billTab .clearPadding {
            padding: 0;
            }
    
            .wl_first  .billTab .ivu-tabs-bar {
            margin-left: 10px;
            margin-right: 10px;
            }
    
            .wl_first  .billTab .ivu-tabs-content {
            }
    
            .wl_first  #formItem3,
            #formItem4 {
            /*line-height:30px;*/
            display: block;
            /*padding-left: 30px;*/
            }
    
            
            .wl_first  .btnBox {
            font-size: 16px;
            padding: 5px 8px;
            color: #fff;
            cursor: pointer;
            }
    
            .wl_first  .add {
            background: #428ccb;
            }
    
            .wl_first  .close {
            background: #f39c11;
            }
    
            .wl_first  .detail .head {
            border: 1px solid #eee;
            border-bottom: none;
            padding: 10px 0;
            padding-left: 20px;
            }
    
            .wl_first  .detail .table {
            border-collapse: collapse;
            width: 100%;
            line-height: 40px;
            }
    
            .wl_first .detail .table th {
            background-color: #f8f8f8;
            }
    
            .wl_first  .detail .table td,
            .detail .table th {
            border: 1px solid #eee;
            text-align: center;
            }
    
            .wl_first .detail .table tr td:nth-child(2) {
            text-align: left;
            padding-left: 15px;
            }
    
        .wl_first .detail .table input {
            height: 30px;
            line-height: 30px;
            border: 1px solid #d2d2d2;
            width: 90%;
            
            }
     .wl_first  .common-box-body .detail .ivu-select:after, .wl_first .common-box-body .detail .ivu-date-picker-rel:after{
         height: 30px;
    }
    </style>
    <template>
        <div class="wl_first">
            <product-title></product-title>
            <div class="bill ">
                <Form  :model="formItem1.agent_info" ref="formItem1" :rules="ruleCustom" label-position="top" id="formItem1" class="same">
                    <Row>
                        <i-col :md="24" :lg="8">
                            <FormItem label="所属机构" prop="agent_comName">
                                <i-input disabled v-model="formItem1.agent_info.agent_comName" type="text" placeholder="请输入机构名称"></i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="8">
                            <FormItem label="操作员工号" prop="agent_operatorCode">
                                <i-input v-model="formItem1.agent_info.agent_operatorCode"  placeholder="请输入员工号">华农财产保险股份有限公司</i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="8">
                            <FormItem label="操作员名称" prop="agent_operatorName">
                                <i-input v-model="formItem1.agent_info.agent_operatorName">华农财产保险股份有限公司</i-input>
                            </FormItem>
                        </i-col>
                    </Row>
                    <Row>
                        <i-col :md="24" :lg="6">
                            <!--  -->
                            <FormItem label="渠道类型"  prop="agentTaxType">
                                <i-select v-model="formItem1.agent_info.agentTaxType">
                                    <i-option value="A">直销业务</i-option>
                                    <i-option value="B">个人代理</i-option>
                                    <i-option value="C">专业代理</i-option>
                                    <i-option value="D">兼业代理</i-option>
                                    <i-option value="E">境内经纪业务</i-option>
                                    <i-option value="F"境外经纪业务</i-option>
                                    <i-option value="G">电话业务</i-option>
                                </i-select>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <!--   -->
                            <FormItem label="代理人" prop="agent_agentName">
                                <i-input v-model="formItem1.agent_info.agent_agentName">颖海保险代理有限公司</i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <!--  -->
                            <FormItem label="协议号" prop="agent_agreementNo">
                                <i-input v-model="formItem1.agent_info.agent_agreementNo">颖海保险代理有限公司</i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                                <!-- prop="agent_info_handlerName" -->
                                <FormItem label="业务员" prop="handlerName">
                                    <i-input v-model="formItem1.agent_info.handlerName"></i-input>
                                </FormItem>
                            </i-col>
                    </Row>
                   
                </Form>
                <Form  :model="formItem1.policy_info" ref="formItem2" :rules="ruleCustom2" label-position="top" class="same">
                   <Row>
                       <i-col :md="24" :lg="6">
                            <FormItem label="保单号" prop="policyNo" >
                                <i-input v-model="formItem1.policy_info.policyNo" @on-blur="send"></i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <FormItem label="投保单号" prop="proposalNo" >
                                <i-input v-model="formItem1.policy_info.proposalNo"></i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <FormItem label="保险类型" prop="policy_type" >
                                <i-select label-in-value v-model="formItem1.policy_info.policy_type" @on-change="comChange($event)" >
                                    <i-option value="1">交强险</i-option>
                                    <i-option value="2">商业险</i-option>
                                </i-select>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <!--  -->
                            <FormItem label="业务类型" prop="relatedType" >
                                <i-select v-model="formItem1.policy_info.relatedType">
                                    <i-option value="1">续保</i-option>
                                    <i-option value="2">转保</i-option>
                                    <i-option value="3">新保</i-option>
                                    <i-option value="4">旧车首保</i-option>
                                </i-select>
                            </FormItem>
                        </i-col>
                    </Row>
                </Form>
              
                    <Row style="padding:30px 0px;" class="billTab">
                        <Tabs type="card" :animated="false" v-model="tab">
                          
                            <TabPane label="车辆信息" class="same">
                                <Form  :model="formItem1.car_info" ref="formItem3" :rules="ruleCustom3" label-position="top">
                                    <div  v-show="tab==0">
                                        <Row>
                                            <i-col :md="24" :lg="8" class="other2">
                                                <!-- prop="agent_info_car_plateNo" -->
                                                <FormItem label="车牌号"  prop="car_plateNo">
                                                    <i-input v-model="formItem1.car_info.car_plateNo" placeholder="请输入车牌号"
                                                            style="width: 50%;" :disabled="weishengpai" ></i-input>
                                                    <checkbox v-model="weishengpai" @on-change='shangpai($event)'>未上牌</checkbox>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <!--  prop="agent_info_car_vIN" -->
                                                <FormItem label="车架号" prop="car_vIN">
                                                    <i-input v-model="formItem1.car_info.car_vIN"
                                                            placeholder="请输入车架号"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="发动机号" prop="car_engine" >
                                                    <i-input placeholder="请输入发动机号" v-model="formItem1.car_info.car_engine"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <!-- prop="car_info_plateType" -->
                                                <FormItem label="号牌种类" prop="plateType">
                                                    <i-select v-model="formItem1.car_info.plateType">
                                                        <i-option value="1">大型汽车号牌</i-option>
                                                        <i-option value="2">小型汽车号牌</i-option>
                                                        <i-option value="3">公安警车号牌</i-option>
                                                        <i-option value="4">使馆汽车号牌</i-option>
                                                        <i-option value="5">领馆汽车号牌</i-option>
                                                        <i-option value="6">境外汽车号牌</i-option>
                                                        <i-option value="7">外籍汽车号牌</i-option>
                                                        <i-option value="8">两、三轮汽车号牌</i-option>
                                                        <i-option value="9">轻便摩托车号牌</i-option>
                                                        <i-option value="10">使馆摩托车号牌</i-option>
                                                        <i-option value="11">领馆摩托车号牌</i-option>
                                                        <i-option value="12">境外摩托车号牌</i-option>
                                                        <i-option value="13">外籍摩托车号牌</i-option>
                                                        <i-option value="14">农用运输车号牌</i-option>
                                                        <i-option value="15">拖拉机号牌</i-option>
                                                        <i-option value="16">挂车号牌</i-option>
                                                        <i-option value="17">教练车号牌</i-option>
                                                        <i-option value="18">教练摩托车号牌</i-option>
                                                        <i-option value="19">实验汽车号牌</i-option>
                                                        <i-option value="20">实验摩托车号牌</i-option>
                                                        <i-option value="21">临时入境汽车号牌</i-option>
                                                        <i-option value="22"临时入境摩托车号牌</i-option>
                                                        <i-option value="23">临时行驶车号牌</i-option>
                                                        <i-option value="24">其他</i-option>
                                                        <i-option value="25">武警号牌</i-option>
                                                        <i-option value="26">军队号牌</i-option>
                                                        <i-option value="27">大型新能源汽车</i-option>
                                                        <i-option value="28">小型新能源汽车</i-option>
                                                    </i-select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <!-- prop="car_info_car_carName" -->
                                                <FormItem label="厂牌型号" prop="car_carName">
                                                    <i-input v-model="formItem1.car_info.car_carName" placeholder="厂牌型号"></i-input>
                                                    <!--<i-button class="radius" type="primary" style="width: 15%">车型</i-button>-->
                                                </FormItem>
                                            </i-col>
                                            <i-col :md2="24" :lg="8">
                                                <!--  prop="car_info_car_model" -->
                                                <FormItem label="行驶证名称" prop="car_model">
                                                    <i-input  v-model="formItem1.car_info.car_model" placeholder="行驶证名称"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <!--  prop="car_info_car_vehicleType" -->
                                                <FormItem label="交管车辆类型" prop="vehicleType">
                                                    <i-select v-model="formItem1.car_info.vehicleType">
                                                        <i-option value="H11">重型普通货车</i-option>
                                                        <i-option value="H12">重型厢式货车</i-option>
                                                        <i-option value="H13">重型封闭货车</i-option>
                                                        <i-option value="H14">重型罐式货车</i-option>
                                                        <i-option value="H15">重型平板货车</i-option>
                                                        <i-option value="H16">重型自卸货车 </i-option>
                                                        <i-option value="H17">重型特殊结构货车 </i-option>
                                                        <i-option value="H21">中型普通货车 </i-option>
                                                        <i-option value="H22">中型厢式货车 </i-option>
                                                        <i-option value="H23">中型封闭货车 </i-option>
                                                        <i-option value="H24">中型罐式货车  </i-option>
                                                        <i-option value="H25">中型平板货车  </i-option>
                                                        <i-option value="H26">中型自卸货车  </i-option>
                                                        <i-option value="H28">中型特殊结构货车  </i-option>
                                                        <i-option value="H31">轻型普通货车  </i-option>
                                                        <i-option value="H32">轻型厢式货车  </i-option>
                                                        <i-option value="H33">轻型封闭货车  </i-option>
                                                        <i-option value="H34">轻型罐式货车  </i-option>
                                                        <i-option value="H35">轻型平板货车  </i-option>
                                                        <i-option value="H36">轻型自卸货车  </i-option>
                                                        <i-option value="H38">轻型特殊结构货车  </i-option>
                                                        <i-option value="H41">微型普通货车  </i-option>
                                                        <i-option value="H42">微型厢式货车  </i-option>
                                                        <i-option value="H43">微型封闭货车  </i-option>
                                                        <i-option value="H44">微型罐式货车  </i-option>
                                                        <i-option value="H45">微型平板货车  </i-option>
                                                        <i-option value="H46">微型自卸货车  </i-option>
                                                        <i-option value="H48">微型特殊结构货车  </i-option>
                                                        <i-option value="K31">小型普通客车  </i-option>
                                                        <i-option value="K32">小型越野客车  </i-option>
                                                        <i-option value="K33">轿车  </i-option>
                                                        <i-option value="K41">微型普通客车  </i-option>
                                                        <i-option value="K42">微型越野客车  </i-option>
                                                        <i-option value="K43">微型轿车  </i-option>
                                                    </i-select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="核定载客量">
                                                    <Select :transfer="true" v-model="formItem1.car_info.car_approvedPassengersCapacity">
                                                        <Option value="0">5座</Option>
                                                        <Option value="1">2座</Option>
                                                        <Option value="2">3座</Option>
                                                        <Option value="3">4座</Option>
                                                        <Option value="4">6座</Option>
                                                        <Option value="5">7座</Option>
                                                        <Option value="6">8座</Option>
                                                        <Option value="7">9座</Option>
                                                        <Option value="8">10座</Option>
                                                    </Select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="4">
                                                <FormItem label="初登日期">
                                                    <DatePicker type="date" placeholder="请选择" :transfer="true"  @on-change="datachange($event,formItem1.car_info,'car_registerDate')"
                                                     v-model="formItem1.car_info.car_registerDateall"></DatePicker>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <!-- prop="car_info_car_purchasePrice" -->
                                                <FormItem label="新车采购价" >
                                                    <i-input v-model="formItem1.car_info.car_purchasePrice"
                                                            placeholder="请输入新车采购价"></i-input>
                                                </FormItem>
                                            </i-col>
    
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="荷载质量(KG)">
                                                    <i-input v-model="formItem1.car_info.approvedLoad"
                                                            placeholder="请输入荷载质量"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="4">
                                                <!--  prop="car_info_car_certificateNo" -->
                                                <FormItem label="行驶证发证日期">
                                                    <DatePicker v-model="formItem1.car_info.car_certificateNoall"   @on-change="datachange($event,formItem1.car_info,'car_certificateNo')"
                                                    type="date" placeholder="请选择" :transfer="true" ></DatePicker>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="吨位(吨)">
                                                    <i-input placeholder="请输入整备质量" v-model="formItem1.car_info.car_approvedLoad"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="功率(W)" >
                                                    <i-input v-model="formItem1.car_info.car_simpleStadarCar"
                                                            placeholder="请输入功率(W)"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="排量(L)" prop="car_displacement">
                                                    <i-input v-model="formItem1.car_info.car_displacement"
                                                            placeholder="请输入排量(L)"></i-input>
                                                </FormItem>
                                            </i-col>
                                            
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="能源种类">
                                                    <i-select :transfer="true" v-model="formItem1.car_info.car_energyTypes">
                                                        <i-option value="0">燃油</i-option>
                                                        <i-option value="1">纯电动</i-option>
                                                        <i-option value="3">插电式混合动力</i-option>
                                                        <i-option value="2">燃料电池</i-option>
                                                        <i-option value="4">其他混合动力</i-option>
                                                    </i-select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="车型代码">
                                                    <i-input v-model="formItem1.car_info.car_localModelCode" placeholder="车型代码"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="行业车型编码">
                                                    <i-input v-model="formItem1.car_info.car_modelCode"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="整备质量（KG）" prop="car_unladenMass">
                                                    <i-input placeholder="请输入整备质量" v-model="formItem1.car_info.car_unladenMass"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                    </div>
                                </Form>
                            </TabPane>
                            <TabPane label="关系人信息" class="common-box-body">
                                <Form >
                                    <div v-show="tab==1" >
                                        <template>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1">
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="客户角色" class="other1" prop='coustomer_role'>
                                                        <CheckboxGroup  v-model="caseold.coustomer_role" @on-change="change1($event)">
                                                            <Checkbox  :disabled="true"  label="1">投保人</Checkbox>
                                                            <Checkbox label="2" >被保险人</Checkbox>
                                                            <Checkbox  label="3">车主</Checkbox>
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="18" :md="24">
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseold.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="证件类型"  prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseold.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseold.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseold.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseold.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseold.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseold.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseold.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseold.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                                
                                            </Row>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1" v-if="seen1">
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="客户角色" class="other1" prop='coustomer_role'>
                                                        <CheckboxGroup v-model="caseold1.coustomer_role" @on-change="change2($event)">
                                                            <Checkbox :disabled="true"   label="1">投保人</Checkbox>
                                                            <Checkbox label="2" >被保险人</Checkbox>
                                                            <Checkbox :disabled="true"  label="3">车主</Checkbox>
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="18" :md="24">
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseold1.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="证件类型"  prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseold1.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseold1.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseold1.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseold1.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseold1.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseold1.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseold1.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseold1.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                            </Row>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1" v-if="seen2">                                          
                                              <i-col :md="24" :lg="6">
                                                    <FormItem label="客户角色" class="other1" prop='coustomer_role'>
                                                        <CheckboxGroup v-model="caseold2.coustomer_role" @on-change="change3($event)">
                                                            <Checkbox :disabled="true"  label="1">投保人</Checkbox>
                                                            <Checkbox :disabled="true" label="2" >被保险人</Checkbox>
                                                            <Checkbox  label="3">车主</Checkbox>   
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="18" :md="24">
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseold2.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="证件类型" prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseold2.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseold2.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseold2.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseold2.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseold2.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseold2.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseold2.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="6">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseold2.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                            </Row>
                                        </template>
                                    </div>
                                </Form>
                            </TabPane>
                            <TabPane label="保单明细"  class="common-box-body">
                                <Form>
                                    <div v-show="tab==2">
                                        <div v-if="formItem1.policy_info.policy_type=='1'">
                                            <div>
                                                <div class="shangjiao">
                                                    <Row>
                                                        <i-col>
                                                            <span>交强险&emsp;&emsp;合计</span>    
                                                        </i-col>
                                                    </Row>
                                                </div>
                                    
                                                <div style="" class="shangjiaoCont">
                                                    <Row>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                起保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择"  @on-change="datachange($event,formItem1.policy_info.car_policy,'validDate')" 
                                                                    v-model="formItem1.policy_info.car_policy.validDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                终保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择"  @on-change="datachange($event,formItem1.policy_info.car_policy,'expiryDate')" 
                                                                                            v-model="formItem1.policy_info.car_policy.expiryDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="6" :lg="3">
                                                            <FormItem label="基准保费">
    
                                                                <i-input v-model="formItem1.policy_info.car_policy.totalStandardPremium"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="6" :lg="3">
                                                            <FormItem label="保费">
                                                                <i-input v-model="formItem1.policy_info.car_policy.totalPremium"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="6" :lg="3">
                                                            <FormItem label="调整系数（%）">
                                                                <i-input v-model="formItem1.policy_info.car_policy.totalAdjustRate"></i-input>
                                                            </FormItem>
                                                        </i-col>
    
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="24" :lg="24">
                                                            <FormItem>
                                                                <Collapse>
                                                                    <Panel name="1">
                                                                        责任限额
                                                                        <p slot="content">
                                                                            <i-col span="24">
                                                                                死亡伤残赔偿限额：110000 元&emsp;&emsp; 医疗费用赔偿限额：10000 元
                                                                                &emsp;&emsp;财产损失赔偿限额：2000 元&emsp;&emsp;
                                                                            </i-col>
                                                                            <i-col span="24">
                                                                                无责任死亡伤残赔偿限额：11000 元 &emsp;&emsp;无责任医疗费用赔偿限额：1000 元&emsp;&emsp;
                                                                                无责任财产损失赔偿限额：100 元
                                                                            </i-col>
                                                                        </p>
                                                                    </Panel>
                                                                </Collapse>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                            </div>
                                            <div>
                                                <div class="shangjiao">
                                                    <Row>
                                                        <i-col>
                                                            缴纳车船税
                                                        </i-col>
                                                    </Row>
                                                </div>
                                                <div class="shangjiaoCont">
                                                    <Row style="margin-bottom: 10px;">
                                                        <i-col :md="24" :lg="24">
                                                            <RadioGroup v-model="formItem1.policy_info.tax.taxConditionCode">
                                                                <Radio label="1">正常缴纳</Radio>
                                                                <Radio label="2">已完税</Radio>
                                                                <Radio label="3">免税</Radio>
                                                                <Radio label="4">减税</Radio>
                                                                <Radio label="5" disabled>拒缴</Radio>
                                                            </RadioGroup>
                                                        </i-col>
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="24" :lg="8">
                                                            <FormItem label="纳税人名称">
                                                                <i-input v-model="formItem1.policy_info.tax.taxPayerName"
                                                                        placeholder="请输入纳税人名称"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="8">
                                                            <FormItem label="纳税人证件类型">
                                                                <i-select v-model="formItem1.policy_info.tax.taxPayerIdentityType"
                                                                        :transfer="true">
                                                                    <Option value="01">身份证</Option>
                                                                    <Option value="02">护照</Option>
                                                                    <Option value="03">外国人永久居住证</Option>
                                                                    <Option value="04">其他</Option>
                                                                </i-select>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="8">
                                                            <FormItem label="纳税人证件号">
                                                                <i-input v-model="formItem1.policy_info.tax.taxPayerIdentityNo"
                                                                        placeholder="请输入纳税人证件号"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='1'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年标准税款">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxAmount"
                                                                            placeholder="请输入本年标准税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年应缴税款">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="往年补缴">
                                                                    <i-input v-model="formItem1.policy_info.tax.sumOverdue"
                                                                            placeholder="请输入往年补缴"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="滞纳金">
                                                                    <i-input v-model="formItem1.policy_info.tax.payment"
                                                                            placeholder="请输入滞纳金"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="合计应交金额">
                                                                    <i-input v-model="formItem1.policy_info.tax.sumTax"
                                                                            placeholder="请输入合计应交金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='2'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="完税凭证号码">
                                                                    <i-input v-model="formItem1.policy_info.tax.certificatenumber" placeholder="请输入完税凭证号码"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关代码">
                                                                    <i-input v-model="formItem1.policy_info.tax.authority"
                                                                            placeholder="请输入税务机关代码"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关名称">
                                                                    <i-input v-model="formItem1.policy_info.tax.authorityname"
                                                                            placeholder="请输入税务机关名称"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='3'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="免税车型">                                                                    <i-select v-model="formItem1.policy_info.tax.cartype">
                                                                        <i-option value='1'>能源减免</i-option>
                                                                        <i-option value='2'>具备减免税证明</i-option>
                                                                        <i-option value='3'>拖拉机</i-option>
                                                                        <i-option value='4'>军队、武警专用车</i-option>
                                                                        <i-option value='5'>警车</i-option>
                                                                        <i-option value='6'>机场、铁路、港口内部行驶或者作业车辆</i-option>
                                                                        <i-option value='7'>其他</i-option>
                                                                    </i-select>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税方案代码">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.reductionprogram"
                                                                            placeholder="请输入减免税方案代码"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免比例/金额">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.reductionratio"
                                                                            placeholder="请输入减免比例/金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税凭证号">
                                                                    <i-input v-model="formItem1.policy_info.tax.vouchernumber"
                                                                            placeholder="请输入减免税凭证号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关名称">
                                                                    <i-input v-model="formItem1.policy_info.tax.authorityname"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关代码">
                                                                    <i-input v-model="formItem1.policy_info.tax.authority"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='4'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="免税车型">
                                                                    <i-select v-model="formItem1.policy_info.tax.cartype">
                                                                        <i-option value='1'>能源减免</i-option>
                                                                        <i-option value='2'>具备减免税证明</i-option>
                                                                        <i-option value='3'>拖拉机</i-option>
                                                                        <i-option value='4'>军队、武警专用车</i-option>
                                                                        <i-option value='5'>警车</i-option>
                                                                        <i-option value='6'>机场、铁路、港口内部行驶或者作业车辆</i-option>
                                                                        <i-option value='7'>其他</i-option>
                                                                    </i-select>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税方案代码">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.reductionprogram"
                                                                            placeholder="请输入减免税方案代码"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免比例/金额">
                                                                    <i-input v-model="formItem1.policy_info.tax.reductionratio" placeholder="请输入减免比例/金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税凭证号">
                                                                    <i-input v-model="formItem1.policy_info.tax.vouchernumber"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关名称">
                                                                    <i-input v-model="formItem1.policy_info.tax.authorityname"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关代码">
                                                                    <i-input v-model="formItem1.policy_info.tax.authority"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年标准税款">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.annualTaxAmount"
                                                                            placeholder="请输入本年标准税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年应缴税款">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="往年补缴">
                                                                    <i-input  v-model="formItem1.policy_info.tax.sumOverdue"
                                                                            placeholder="请输入往年补缴"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="滞纳金">
                                                                    <i-input  v-model="formItem1.policy_info.tax.payment"
                                                                            placeholder="请输入滞纳金"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="合计应交金额">
                                                                    <i-input  v-model="formItem1.policy_info.tax.sumTax"
                                                                            placeholder="请输入合计应交金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <Row>
                                                        <i-col :md="24" :lg="24">
                                                            <FormItem>
                                                                <Collapse>
                                                                    <Panel name="1">
                                                                        责任限额
                                                                        <p slot="content">
                                                                            <i-col span="24">
                                                                                死亡伤残赔偿限额：110000 元&emsp;&emsp; 医疗费用赔偿限额：10000 元
                                                                                &emsp;&emsp;财产损失赔偿限额：2000 元&emsp;&emsp;
                                                                            </i-col>
                                                                            <i-col span="24">
                                                                                无责任死亡伤残赔偿限额：11000 元 &emsp;&emsp;无责任医疗费用赔偿限额：1000 元&emsp;&emsp;
                                                                                无责任财产损失赔偿限额：100 元
                                                                            </i-col>
                                                                        </p>
                                                                    </Panel>
                                                                </Collapse>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                            </div>
                                        </div>
                                        <div v-if="formItem1.policy_info.policy_type=='2'">
                                           <div>  
                                                <div class="shangjiao">
                                                    <Row>
                                                        <i-col>
                                                            商业险&emsp;&emsp;合计<span>{{formItem1.policy_info.business_policy.totalPremium}}</span>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                                <div class="shangjiaoCont">
                                                    <Row>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                起保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择"  @on-change="datachange($event,formItem1.policy_info.business_policy,'validDate')" 
                                                                                            v-model="formItem1.policy_info.business_policy.validDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                终保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择" @on-change="datachange($event,formItem1.policy_info.business_policy,'expiryDate')" 
                                                                                            v-model="formItem1.policy_info.business_policy.expiryDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="整单折扣(%)">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.premiumCount"
                                                                        placeholder="请输入整单折扣"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="基准保费">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.totalStandardPremium"
                                                                        placeholder="请输入基准保费"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="费率/调整系数(%)">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.totalAdjustRate"
                                                                        placeholder="请输入费率/调整系数"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="保费">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.totalPremium"
                                                                        placeholder="请输入保费"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                            </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        主险条约
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="show1">
                                                        <i-button type="primary"  @click="showOne">
                                                            <Icon type="arrow-up-b"></Icon>
                                                            折叠
                                                        </i-button>
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="!show1">
                                                        <i-button type="primary"   @click="showOne1">
                                                            <Icon type="arrow-down-b"></Icon>
                                                            展开
                                                        </i-button>
                                                    </i-col>
                                                </Row>
                                                <Row>
                                                    <table class="table xianzhong">
                                                        <thead>
                                                        <tr>
                                                            <th>操作</th>
                                                            <th>险别名称</th>
                                                            <th>不计免赔</th>
                                                            <th>保额</th>
                                                            <th>基准保费</th>
                                                            <th>保费</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <template v-for="(item,index) in main_risks" v-if="show1">
                                                            <tr>
                                                                <td>
                                                                    <Checkbox  v-model="main_risks[index].index" @on-change="indexChange($event,index)"></Checkbox>
                                                                </td>
                                                                <td>
                                                                    {{main_risks[index].kindName}}
                                                                    <i-select v-if="main_risks[index].index&&index==0" v-model="main_risks[index].noTaxPremiumChg" style="width: 35%;margin-left:5%">
                                                                        <i-option value="0">无绝对免赔额</i-option>
                                                                        <i-option value="300">300元</i-option>
                                                                        <i-option value="500">500元</i-option>
                                                                        <i-option value="1000">1000元</i-option>
                                                                        <i-option value="2000">2000元</i-option>
                                                                    </i-select>
                                                                </td>
                                                                <td>
                                                                    <Checkbox v-if="main_risks[index].index" v-model="main_risks[index].notDeductibleFlag" @on-change="bujiChange($event,index)"  ></Checkbox>
                                                                </td>
                                                                <td><input type="text" v-model="main_risks[index].amount" v-if="main_risks[index].index&&index!=1">
                                                                    <i-select style="width:90%; " v-if="main_risks[index].index&&index==1" v-model="main_risks[1].amount">
                                                                        <i-option value="50000">5万元</i-option>
                                                                        <i-option value="100000">10万元</i-option>
                                                                        <i-option value="150000">15万元</i-option>
                                                                        <i-option value="200000">20万元</i-option>
                                                                        <i-option value="300000">30万元</i-option>
                                                                        <i-option value="500000">50万元</i-option>
                                                                        <i-option value="1000000">100万元</i-option>
                                                                        <i-option value="1500000">150万元</i-option>
                                                                        <i-option value="2000000">200万元</i-option>
                                                                        <i-option value="2500000">250万元</i-option>
                                                                        <i-option value="3000000">300万元</i-option>
                                                                        <i-option value="3500000">350万元</i-option>
                                                                        <i-option value="4000000">400万元</i-option>
                                                                        <i-option value="4500000">450万元</i-option>
                                                                        <i-option value="5000000">500万元</i-option>
                                                                        <i-option value="5500000">550万元</i-option>
                                                                        <i-option value="6000000">600万元</i-option>
                                                                        <i-option value="6500000">650万元</i-option>
                                                                        <i-option value="7000000">700万元</i-option>
                                                                        <i-option value="7500000">750万元</i-option>
                                                                    </i-select>
                                                                </td>
                                                                <td><i-input v-show="main_risks[index].index" v-model="main_risks[index].coverageStandardPremium"></i-input></td>
                                                                <td><i-input v-show="main_risks[index].index" v-model="main_risks[index].CoveragePremium"></i-input></td>
                                                            </tr>
                                                        </template>
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        附加险
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="show2">
                                                        <i-button type="primary"  @click="showTwo">
                                                            <Icon type="arrow-up-b"></Icon>
                                                            折叠
                                                        </i-button>
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="!show2">
                                                        <i-button type="primary"   @click="showTwo1">
                                                            <Icon type="arrow-down-b"></Icon>
                                                            展开
                                                        </i-button>
                                                    </i-col>
                                                </Row>
                                                <Row style="margin-bottom: 50px;">
                                                    <table class="table xianzhong1">
                                                        <thead>
                                                        <tr>
                                                            <th>选择</th>
                                                            <th>险别名称</th>
                                                            <th>保额/限额</th>
                                                            <th>基准保费</th>
                                                            <th>保费</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <template v-for="(item,index) in fujia" v-if="show2">
                                                            <tr>
                                                                <td style="width: 5%;"><checkbox @on-change="fujiaChange($event,index)" v-model="fujia[index].check"></checkbox></td>
                                                                <td style="width: 30%;">{{item.kindName}}</td>
                                                                <td>
                                                                    <input type="text" v-model="fujia[index].amount" v-if="fujia[index].check">
                                                                </td>
                                                                <td>
                                                                    <input type="text" v-model="fujia[index].coverageStandardPremium" v-if="fujia[index].check">
                                                                </td>
                                                                <td>
                                                                    <input type="text" v-model="fujia[index].CoveragePremium" v-if="fujia[index].check">
                                                                </td>
                                                            </tr>
                                                        </template>
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        不计免赔险
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="show3">
                                                        <i-button type="primary"  @click="showThr">
                                                            <Icon type="arrow-up-b"></Icon>
                                                            折叠
                                                        </i-button>
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="!show3">
                                                        <i-button type="primary"   @click="showThr1">
                                                            <Icon type="arrow-down-b"></Icon>
                                                            展开
                                                        </i-button>
                                                    </i-col>
                                                </Row>
                                                <Row>
                                                    <table class="table xianzhong">
                                                        <thead>
                                                        <tr>
                                                            <th>项目</th>
                                                            <th>保额/限额</th>
                                                            <th>基准保费</th>
                                                            <th>保费</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                            <template v-for="(item,index) in buji" v-if="show3">
                                                                <tr>
                                                                    <td style="width: 25%;">{{item.kindName}}</td>
                                                                    <td style="width: 25%;"  ><input type="text" v-model="buji[index].amount"></td>
                                                                    <td style="width: 25%;" ><input type="text" v-model="buji[index].coverageStandardPremium"></td>
                                                                    <td style="width: 25%;" ><input type="text" v-model="buji[index].CoveragePremium"></td>
                                                                </tr>
                                                            </template>
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                        </div>
                                        </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        特约
                                                    </i-col>
                                                </Row>
                                                <Row>
                                                    <table class="table xianzhong">
                                                        <thead>
                                                        <tr>
                                                            <th>特约号</th>
                                                            <th>特约名称</th>
                                                            <th>
                                                                特约内容
                                                            </th>
                                                            <th>
                                                                <i-button @click="teyueAdd">添加</i-button>
                                                            </th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <template v-for="(item,index) in formItem1.engage">
                                                            <tr>
                                                                <td style="width:20% !important;text-align: left;padding-left: 20px;">
                                                                    <i-input v-model="item.engageCode"></i-input>
                                                                </td>
                                                                <td style="width:20% !important;text-align: left;padding-left: 20px;">
                                                                    <i-input v-model="item.engageTitle"></i-input>
                                                                </td>
                                                                <td style="width: 60%;padding: 5px 0;">
                                                                    <i-input v-model="item.engageDetail"></i-input>
                                                                </td>
                                                                <td>
                                                                    <i-button @click="teyueRemove(index)">删除</i-button>
                                                                </td>
                                                            </tr>
                                                        </template>
    
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                 </Form>
                            </TabPane>
                            <TabPane label="付款信息"  class="common-box-body">
                                <Form>
                                    <div id="formItem4">
                                        <Row style="padding:20px 0;border-bottom: 1px dotted #F1F1F1">
                                            <i-col :md="24" :lg="4" style="padding-left:50px;">
                                                <FormItem label="出单角色" class="other1">
                                                    <RadioGroup>
                                                        <Radio label="1">全费出单</Radio>
                                                        <Radio label="2">净费出单</Radio>
                                                    </RadioGroup>
                                                </FormItem>
                                            </i-col>
                                            <i-col style="display: inline;" :lg="20" :md="24">
                                                <i-col :md="24" :lg="12">
                                                    <FormItem label="下游佣金收款人">
                                                        <i-input placeholder="请输入下游佣金收款人"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="12">
                                                    <FormItem label="付款方式">
                                                        <Select :transfer="true">
                                                            <Option value="0">未知</Option>
                                                            <Option value="1">POS刷卡</Option>
                                                            <Option value="2">微信支付</Option>
                                                            <Option value="3">支付宝</Option>
                                                            <Option value="4">网银支付</Option>
                                                            <Option value="5">银行转账</Option>
                                                            <Option value="6">支票方式</Option>
                                                            <Option value="7">现金</Option>
                                                            <Option value="8">其他</Option>
                                                        </Select>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="户名">
                                                        <i-input placeholder="请输入户名"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="银行">
                                                        <i-input placeholder="请输入银行"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="开户行">
                                                        <i-input placeholder="请输入开户行"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="账单">
                                                        <i-input placeholder="请输入账单"></i-input>
                                                    </FormItem>
                                                </i-col>
                                            </i-col>
                                        </Row>
                                    </div>
                                 </Form>
                            </TabPane>
                            <TabPane label="代刷卡信息"  class="common-box-body">
                                <Form>
                                    <div id="formItem5">
                                        <Row>
                                            <i-col :md="24" :lg="6">
                                                <FormItem label="户名">
                                                    <i-input placeholder="请输入户名"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="3">
                                                <FormItem label="银行">
                                                    <i-input placeholder="请输入银行"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="3">
                                                <FormItem label="开户行">
                                                    <i-input placeholder="请输入开户行"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="6">
                                                <FormItem label="账号">
                                                    <i-input placeholder="请输入账号"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="6">
                                                <FormItem label="刷卡日期">
                                                    <DatePicker type="date" placeholder="请选择" 
                                                                v-model="formItem1.policy_info.business_policy.expiryDate"></DatePicker>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="24">
                                                <FormItem label="刷卡备注">
                                                    <i-input type="textarea" :rows="4" placeholder="请输入刷卡备注"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                    </div>
                                 </Form>
                            </TabPane>
                            <TabPane label="代理信息"  class="common-box-body">
                                <Form>
    
                                </Form>
                            </TabPane>
                            <TabPane label="备注信息"  class="common-box-body">
                                <Form>
                                    <div id="formItem7">
                                        <Row>
                                            <i-col span="24">
                                                <i-input type="textarea" :rows="4" placeholder="请输入备注信息"></i-input>
                                            </i-col>
                                        </Row>
                                        <Row style="margin-top:20px;">
                                            <!-- <i-col :md="24" :lg="6">
                                                <i-select :transfer="true">
                                                    <i-option>123</i-option>
                                                </i-select>
                                            </i-col> -->
                                            <!-- <i-col :md="24" :lg="6" style="line-height:30px;color: #D4D5D4;">
                                                    <span>
                                                        <Icon type="information"></Icon>
                                                        可标记备注类型，编辑完备注记得提交保单修改
                                                    </span>
                                            </i-col> -->
                                            <!-- <i-col :md="24" :lg="{span:2,offset:10}">
                                                    <span>
                                                        <span class="btnBox add">
                                                            <Icon type="plus" class=""></Icon>
                                                        </span>
                                                        <span class="btnBox close">
                                                            <Icon type="close"></Icon>
                                                        </span>
                                                    </span>
                                            </i-col> -->
                                        </Row>
                                    </div>
                                </Form>
                            </TabPane>
    
                        </Tabs>
                    </Row>
                    
               
            </div>
            <Row >
                <i-col span="24" id="footer">
                    <i-button type="primary" shape="circle" :disabled='tableaction' style="width:200px;position:relative;left:-10%;" @click="submit('formItem1','formItem2','formItem3')">
                        <Icon type="checkmark-circled"></Icon>
                        &emsp;提交保单信息
                    </i-button>
                    <i-button shape="circle" style="width:120px;background-color: #77B4F5;color:#FFF;position:relative;left:-9%;"
                                @click="back">
                        <Icon type="refresh"></Icon>
                        &emsp;返回
                    </i-button>
                </i-col>
            </Row>
        </div>
    </template>
    
    <script>
    import productTitle from "../../components/productTitle";
    import { car_policy_detail, car_policy_entering,car_policy_ckNo} from "../../api/car.js";
    
    export default {
      data() {
        return {
          X1: false,
          X2: false,
          X3: false,
          seen1:false,
          seen2:false,
          show1:true,
          show2:true,
          show3:true,
          tableaction:false,
          tab: "",
          yewu: "01",
          tabs: "",
          weishengpai: false,
          sx1: 0,
          sx2: 0,
          policy_types: "交强险",
          arr: [],
          caseold: {
                coustomer_role:["1","2","3"],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "", //反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
            },
            caseold1: {
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
            },
            caseold2: {
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
            },
            formItem1: {
                type: "",
                agent_info: {
                agentTaxType: "", //渠道类型
                handlerName: "", //业务员
                agent_agentName: "", //代理人
                agent_agreementNo: "", //协议号
                agent_comName: "华农财产保险股份有限公司西华支公司", //归属机构
                agent_operatorCode: "", //操作员工号
                agent_operatorName: "" //操作员名称
                },
                car_info: {//车辆类型
                vehicleType: "", //车辆类型      
                car_energyTypes: "", //能源种类  
                plateType: "", //车牌号码   
                car_registerDate: "", //初登日期 
                car_registerDateall: "", //初登日期 
                car_plateNo: "豫", // 车牌号 
                car_vIN: "", //车架号        
                car_engine: "", //发动机号码  
                car_categoryName: "", //使用性持
                car_carName: "", //厂牌型号   
                car_model: "", //行驶证名称    
                car_approvedPassengersCapacity: "", //核定载客量   1
                car_purchasePrice: "", //新车采购价   
                car_unladenMass: "", //车重
                displacement: "", //排量
                approvedLoad: "", //荷载重量
                car_certificateNo: "", //行驶证发证日期 
                car_certificateNoall: "", //行驶证发证日期  
                car_approvedLoad: "", //吨位   
                car_simpleStadarCar: "", //功率L   
                car_displacement: "", //排量L  
                car_unladenMass: "", //整备质量(KG)   
                car_localModelCode: "", //车型代码    
                car_modelCode: "" //行业车型编码    
                },
                //客户信息
                coustomer_info: {
                    case: {//第一角色
                        role:"1",
                        rerole:'投保人',//客户角色类型:被保险人
                        coustomer_identifyType: "", //证件类型
                        coustomer_identifyNumber: "", //证件号码
                        coustomer_name: "", //名字
                        coustomer_nativePlace: "", //客户地址
                        coustomer_mobile: "", //手机号
                        sex: "",
                        tel: "",
                        clientType: "",
                        coustomer_eamil: "", //邮箱
                        coustomer_riskLevel: "", //反洗钱风险等级
                        customer_type:'',//客户类型
                        coustomer_email:'',//邮箱
                    },
                    case1: {//第二角色
                        role:"2",
                        rerole:'被保险人',//客户角色类型:投保人
                        coustomer_identifyType: "", //证件类型
                        coustomer_identifyNumber: "", //证件号码
                        coustomer_name: "", //名字
                        coustomer_nativePlace: "", //客户地址
                        coustomer_mobile: "", //手机号
                        sex: "",
                        tel: "",
                        clientType: "",
                        coustomer_eamil: "", //邮箱
                        coustomer_riskLevel: "", //反洗钱风险等级
                        customer_type:'',//客户类型
                        coustomer_email:'',//邮箱
                    },
                    case2: {//第三角色
                        role:"3",
                        rerole:'车主',//客户角色类型:车主
                        coustomer_identifyType: "", //证件类型
                        coustomer_identifyNumber: "", //证件号码
                        coustomer_name: "", //名字
                        coustomer_nativePlace: "", //客户地址
                        coustomer_mobile: "", //手机号
                        sex: "",
                        tel: "",
                        clientType: "",
                        coustomer_eamil: "", //邮箱
                        coustomer_riskLevel: "", //反洗钱风险等级
                        customer_type:'',//客户类型
                        coustomer_email:'',//邮箱
                    },
                },
                engage: [//特约
                 {
                    engageCode: "",//特约号    
                    engageDetail: "",//特约名称
                    engageTitle: "",//特约内容
                 }
                ],
                policy_info: {//业务
                    relatedType: "", //业务类型
                    policy_type: "", //保险类型
                    proposalNo: "", //投保单号
                    policyNo: "", //保险单号
                    //商业险  //交强险
                    business_policy: {
                        policy_type: "", //保险类型
                        totalPremium: "", //商业险合计  和  保费
                        expiryDate: "", //终保日期
                        expiryDateall: "", //终保日期
                        validDate: "", //起保日期
                        validDateall:'',//起保日期
                        premiumCount: "", //整单折扣
                        totalStandardPremium: "", //基准保费
                        totalAdjustRate: "" //费率/调整系数
                    },
                    //交强险
                    car_policy: {
                        policy_type: "", //保险类型
                        totalPremium: "", //商业险合计  和  保费
                        expiryDate: "", //终保日期
                        expiryDateall: "", //终保日期
                        validDate: "", //起保日期
                        validDateall:'',//起保日期
                        premiumCount: "", //整单折扣
                        totalStandardPremium: "", //基准保费
                        totalAdjustRate: "" //费率/调整系数
                    },
                    //缴纳车船税
                    tax: {
                        taxPayerName: "", //纳税人名称
                        taxPayerIdentityType: "", //纳税人证件类型
                        taxPayerIdentityNo: "", //纳税人证件号码
                        taxPayerIdentificationCode: "", //纳税人识别号
                        annualTaxAmount: "", //本年标准税款
                        annualTaxDue: "", //本年应交税款
                        sumOverdue: "", //往年补交
                        payment:"",//   滞纳金
                        taxConditionCode: "", //已交  未交  redio
                        sumTax: "", //总计金额
                        certificatenumber:"",//完税凭证号码	
                        authority:"",//税务机关代码
                        authorityname:"",//税务机关名称
                        cartype:"",//减免车型
                        reductionprogram:"",//减免税方案代码
                        reductionratio:"",//减免比例/金额
                        vouchernumber:"",//减免税凭证号
                    },
                    // 主险条约
                    main_risks: [],
                    // 附加险
                    additional_risks: [],
                    //不加免赔
                    disregard_deduction: [],
                    // 特约
                    engage: [],
                }
                // violation: [],
                //
            },
            ruleCustom: {
                agent_comName: [{ required: true, message: "该信息不能为空" }],
                agent_operatorName: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                agent_operatorCode: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                agentTaxType: [
                { required: true, message: "该信息不能为空", trigger: "change" }
                ],
                agent_agentName: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                agent_agreementNo: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                handlerName: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ]
            },
            ruleCustom2: {
                policy_type: [{ required: true, message: "该信息不能为空" }],
                relatedType: [{ required: true, message: "该信息不能为空" }],
                policyNo: [{ required: true, message: "该信息不能为空" }],
                proposalNo: [{ required: true, message: "该信息不能为空" }],
            },
            ruleCustom3: {
                car_plateNo:[{ required: true, message: "该信息不能为空" }],
                car_engine: [{ required: true, message: "该信息不能为空" }],
                car_vIN: [{ required: true, message: "该信息不能为空" }],
        
                plateType: [{ required: true, message: "该信息不能为空" }],
                car_carName: [{ required: true, message: "该信息不能为空" }],
                car_model: [{ required: true, message: "该信息不能为空" }],
                vehicleType: [{ required: true, message: "该信息不能为空" }]
            },
            fujia: [],
            buji: [],
            main_risks: [
                {
                index: false,//是否勾选主险(对应展现相应的附加险)
                kindName: "车辆损失保险",//主险名称
                notDeductibleFlag: false,//是否勾选不计免赔险(对应展现相应的不计免赔)
                amount: "",//主险保额
                disabled: false,//
                coverageStandardPremium: "",//主险基准保费
                noTaxPremiumChg: "0",//主险车辆损失保险勾选后的赔付金额
                bujiArray: [
                    {
                    kindName: "不计免赔险（机动车损失保险）",//不计免赔险名称
                    }
                ],
                CoveragePremium: "",//不计免赔险保费
                fujia: [
                    {
                    kindName: "机动车损失保险无法找到第三方特别约定险"
                    },
                    {
                    kindName: "玻璃单独破碎险"
                    },
                    {
                    kindName: "指定修理厂险"
                    },
                    {
                    kindName: "车身划痕损失险",
                    buji: [
                        {
                        kindName: "不计免赔险（车身划痕损失险）"
                        }
                    ]
                    },
                    {
                    kindName: "修理期间费用补偿险"
                    },
                    {
                    kindName: "新增加设备损失险",
                    buji: [
                        {
                        kindName: "不计免赔险（新增加设备损失保险）"
                        }
                    ]
                    },
                    {
                    kindName: "发动机涉水损失险",
                    buji: [
                        {
                        kindName: "发动机涉水损失险"
                        }
                    ]
                    },
                    {
                    kindName: "自燃损失险",
                    buji: [
                        {
                        kindName: "不计免赔险（自燃损失险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "商业第三者责任保险",
                notDeductibleFlag: false,
                amount: "",
                disabled: false,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（第三者责任险）"
                    }
                ],
                fujia: [
                    {
                    kindName: "车上货物责任险"
                    },
                    {
                    kindName: "精神损害抚慰金责任险",
                    buji: [
                        {
                        kindName: "不计免赔险（精神损害抚慰金责任险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "车上人员责任险（驾驶员）",
                notDeductibleFlag: false,
                amount: "",
                disabled: true,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（车上人员责任险（驾驶员））"
                    }
                ],
                fujia: [
                    {
                    kindName: "精神损害抚慰金责任险",
                    buji: [
                        {
                        kindName: "不计免赔险（精神损害抚慰金责任险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "车上人员责任险（车上人乘客）",
                notDeductibleFlag: false,
                amount: "",
                disabled: true,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（车上人员责任险（乘客））"
                    }
                ],
                fujia: [
                    {
                    kindName: "精神损害抚慰金责任险",
                    buji: [
                        {
                        kindName: "不计免赔险（精神损害抚慰金责任险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "全车盗抢险",
                notDeductibleFlag: false,
                amount: "",
                disabled: false,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（盗抢险)"
                    }
                ]
                }
            ],
            
            };
      },
      components: {
        productTitle
      },
      methods: {
        //   点击返回  回退列表页面
          back() {
            this.$router.push({
                name:'bill_search'
              })
          },
          //时间转换
            datachange(date,obj,param){
                obj[param] = date;
                console.log(obj[param],"当前点击的是哪个日期")
            },
        // 对勾选是否有车牌的传值问题,默认传值是 豫 字
        shangpai(e){
            if(e==true){
                this.formItem1.car_info.car_plateNo = "豫";
            }
        },
    // 关系人信息页面
        change1(e){
            console.log(e,'eeeeeee')
           //投保人1 被保人2 车主3   
            var _this = this;
            // 对数据进行初始化排序和去重
            _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)];
            _this.caseold.coustomer_role=[...new Set(_this.caseold.coustomer_role)];
            _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)];
            _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
            // 选中状态
            // 人选中状态
            if(e.indexOf('2')!=-1 ){
            _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)];
            _this.caseold.coustomer_role=[...new Set(_this.caseold.coustomer_role)];
            _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)];
            _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
                _this.seen1=false;
                _this.caseold1.coustomer_role=[];
                _this.caseold1={
                            coustomer_role:[],//客户角色类型
                            coustomer_identifyType: "", //证件类型
                            coustomer_identifyNumber: "", //证件号码
                            coustomer_name: "", //名字
                            coustomer_nativePlace: "", //客户地址
                            coustomer_mobile: "", //手机号
                            sex: "",
                            tel: "",
                            clientType: "",
                            coustomer_eamil: "", //邮箱
                            coustomer_riskLevel: "" //反洗钱风险等级
                        }
                _this.caseold.coustomer_role.push('2');
                _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
                _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)];
                _this.caseold.coustomer_role=[...new Set(_this.caseold.coustomer_role)];
            }
           
                if(e.indexOf('3')!=-1 ){
            _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)];
            _this.caseold.coustomer_role=[...new Set(_this.caseold.coustomer_role)];
            _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)];
            _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
                 _this.seen2=false
                 _this.caseold2.coustomer_role=[];
                 _this.caseold2={
                                                            coustomer_role:[],//客户角色类型
                                                            coustomer_identifyType: "", //证件类型
                                                            coustomer_identifyNumber: "", //证件号码
                                                            coustomer_name: "", //名字
                                                            coustomer_nativePlace: "", //客户地址
                                                            coustomer_mobile: "", //手机号
                                                            sex: "",
                                                            tel: "",
                                                            clientType: "",
                                                            coustomer_eamil: "", //邮箱
                                                            coustomer_riskLevel: "" //反洗钱风险等级
                                                        }
                 _this.caseold.coustomer_role.push('3');
                 _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
                _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)];
                _this.caseold.coustomer_role=[...new Set(_this.caseold.coustomer_role)];
             }
    
            
               
            // if(_this.sx1==0){
                if(e.indexOf('2')==-1){
                 _this.seen1 = true;
                 for(var w=0;w<_this.caseold.coustomer_role.length;w++){
                     if(_this.caseold.coustomer_role[w]=='2'){
                      _this.caseold.coustomer_role.splice(w,1);
                     }
                 }
                 _this.caseold1.coustomer_role.push('2');
                //  _this.sx1=-1;
               }
               _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
               _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)]
                
            // }
            // if(_this.sx2==0){
                if(e.indexOf('3')==-1){
                   console.log("点击的是2233333333");
                   _this.seen2 = true;
                   for(var j in _this.caseold.coustomer_role){
                     if(_this.caseold.coustomer_role[j]=='3'){
                         _this.caseold.coustomer_role.splice(j,1);
                     }
                 }
                   _this.caseold2.coustomer_role.push('3');
               }
               _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) 
               _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)];
                 
            // }  
               
        },
        change2(e){
            console.log(e,'.....')
            var _this = this;
            // 未选中
            if(e.indexOf('2')==-1){
                 _this.seen1 = false;
                 _this.caseold.coustomer_role.push('2');
                 _this.caseold1.coustomer_role.splice(0,1);
                 _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)]
               }
            //    选中
               if(e.indexOf('2')!=-1){
                 _this.seen1 = false;
                 _this.caseold.coustomer_role.push('2')
                _this.caseold1.coustomer_role.splice(0,1);
                 _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)]
               }
               _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) ;
                 _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold1.coustomer_role=[...new Set(_this.caseold1.coustomer_role)];
               
        },
        change3(e){
            console.log(e,'.....')
            var _this = this;
            // 未选中O
               if(e.indexOf('3')==-1){
                   _this.seen2 = false;
                   _this.caseold.coustomer_role.push('3')
                   _this.caseold2.coustomer_role.splice(0,1);
                   _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)]
               }
            //    选中
               if(e.indexOf('3')!=-1){
                   _this.seen2 = false;
                   _this.caseold.coustomer_role.push('3')
                   _this.caseold2.coustomer_role.splice(0,1);
                _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)]
               }
               _this.caseold.coustomer_role=_this.caseold.coustomer_role.sort(function(a,b){
                    return a - b
                 }) ;
                 _this.caseold.coustomer_role =[...new Set(_this.caseold.coustomer_role)];
               _this.caseold2.coustomer_role=[...new Set(_this.caseold2.coustomer_role)]
        },
        showOne(){
            this.show1 = false
        },
        showOne1(){
            this.show1 = true
        },
        showTwo(){
            this.show2 = false
        },
        showTwo1(){
            this.show2 = true
        },
        showThr(){
            this.show3 = false
        },
        showThr1(){
            this.show3 = true
        },
        tabClick() {
          //                alert(this.tab);
        },
        // guanxiAdd() {
        //   this.push({
        //     coustomer_role: [], //客户角色
        //     coustomer_identifyType: "01", //证件类型
        //     coustomer_identifyNumber: "", //证件号码
        //     coustomer_name: "", //名字
        //     coustomer_nativePlace: "", //客户地址
        //     coustomer_mobile: "", //手机号
        //     sex: "",
        //     tel: "",
        //     clientType: ""
        //   });
        // },
        // guanxiRemove(index) {
        //   this.splice(index, 1);
        // },
    
        indexChange(e, index) {
          var _this = this;
          // 点击事件,
          if (e) {
            for (var a = 0; a < _this.main_risks[index].fujia.length; a++) {
              _this.fujia.push(_this.main_risks[index].fujia[a]);
            }
          } else if (!e) {
            _this.formItem1.policy_info.main_risks.splice(index, 1);
            console.log(_this.formItem1.policy_info.main_risks, "11111");
            for (let i = 0; i < _this.main_risks[index].fujia.length; i++) {
              for (let v = 0; v < _this.fujia.length; v++) {
                if (
                  _this.main_risks[index].fujia[i].kindName ==
                  _this.fujia[v].kindName
                ) {
                  _this.fujia.splice(v, 1);
                }
              }
            }
          }
          // 对_this.fujia 所产生的重复进行去重
          for (var i in _this.fujia) {
            for (var j in _this.fujia) {
              if (i !== j && _this.fujia[i].kindName == _this.fujia[j].kindName) {
                // alert( _this.fujia[i].name+"重复")
                _this.fujia.splice(i, 1);
                return;
              }
            }
          }
        },
        // 保单号丢失光标事件查询
        send(){
              let _params = {proposalNo:this.formItem1.policy_info.policyNo}
             
                new Promise((resolve, reject) => {
                    car_policy_ckNo(_params).then(response => {
                        if (response.data.err == true){
                            this.$Message.success("该表单号码被重复提交");
                            this.formItem1.policy_info.policyNo = '';
                            return;
                        }
                        resolve();
                    }).catch(error => {
                        reject(error);
                    });
                });
        },
        // 点击不计免赔
        bujiChange(e, index) {
          var _this = this;
          if (e) {
            for (var b = 0; b < _this.main_risks[index].bujiArray.length; b++) {
              _this.buji.push({
                kindName: _this.main_risks[index].bujiArray[b].kindName,
                coverageStandardPremium: "",
                CoveragePremium: "",
                amount: ""
              });
            }
          } else if (!e) {
            // 当不勾选不计免赔的时候 对应的不计免赔项目的消除处理
            for (let i = 0; i < _this.main_risks[index].bujiArray.length; i++) {
              for (let v = 0; v < _this.buji.length; v++) {
                console.log(_this.buji[v].kindName, "_this.buji[v].name2222");
                if (
                  _this.main_risks[index].bujiArray[i].kindName ==
                  _this.buji[v].kindName
                ) {
                  _this.buji.splice(v, 1);
                }
              }
            }
          }
        },
        fujiaChange(e, index) {
          var _this = this;
          if (e) {
            for (var a = 0; a < _this.fujia[index].buji.length; a++) {
              _this.buji.push(_this.fujia[index].buji[a]);
              //                        _this.fujia[index].push({check:true});
            }
            return _this.buji;
          } else if (!e) {
            for (var b = 0; b < _this.buji.length; b++) {
              for (var c = 0; c < _this.fujia[index].buji.length; c++) {
                if (_this.buji[b].kindName == this.fujia[index].buji[c].kindName) {
                  this.buji.splice(b, 1);
                }
              }
            }
            return _this.buji;
          }
        },
        // 点击提交按钮,发送信息
        submit(name1, name2,name3) {
        this.tableaction = true;
         setTimeout(() => {
                    this.tableaction = false;
         }, 5000);
        if(this.caseold.coustomer_role.length==3){
            console.log("关系人信息全部一致的情况下");
            console.log(this.caseold,"111");console.log(this.caseold1,"222");console.log(this.caseold2,"333");
            console.log(this.caseold.coustomer_identifyNumber,"数据咋了啊")
             this.formItem1.coustomer_info.case={
                role:"1",
                rerole:'投保人',//客户角色类型:投保人
                coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                coustomer_name: this.caseold.coustomer_name, //名字
                coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                sex: this.caseold.sex,
                tel: this.caseold.tel,
                clientType:  this.caseold.clientType,
                coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                customer_type:this.caseold.customer_type,//客户类型
                coustomer_email:this.caseold.coustomer_email,//邮箱
             }  
             console.log(this.formItem1.coustomer_info.case.coustomer_identifyNumber,"数据没复制上去吗啊")
             this.formItem1.coustomer_info.case1={
                role:"2",
                rerole:'被保险人',//客户角色类型:被保险人人
                coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                coustomer_name: this.caseold.coustomer_name, //名字
                coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                sex: this.caseold.sex,
                tel: this.caseold.tel,
                clientType:  this.caseold.clientType,
                coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                customer_type:this.caseold.customer_type,//客户类型
                coustomer_email:this.caseold.coustomer_email,//邮箱
             } 
             this.formItem1.coustomer_info.case2={
                role:"3",
                rerole:'车主',//客户角色类型:车主
                coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                coustomer_name: this.caseold.coustomer_name, //名字
                coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                sex: this.caseold.sex,
                tel: this.caseold.tel,
                clientType:  this.caseold.clientType,
                coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                customer_type:this.caseold.customer_type,//客户类型
                coustomer_email:this.caseold.coustomer_email,//邮箱
             } 
        }
        // 长度为2
        if(this.caseold.coustomer_role.length==2){
            console.log("关系人信息全部一致的情况下");
            console.log(this.caseold,"111");console.log(this.caseold1,"222");console.log(this.caseold2,"333");
            // 当前包含投保人
            if(this.caseold.coustomer_role.includes('2')){
                this.formItem1.coustomer_info.case={
                    role:"1",
                    rerole:'投保人',//客户角色类型:投保人
                    coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                    sex: this.caseold.sex,
                    tel: this.caseold.tel,
                    clientType:  this.caseold.clientType,
                    coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold.customer_type,//客户类型
                    coustomer_email:this.caseold.coustomer_email,//邮箱
                }  
                this.formItem1.coustomer_info.case1={
                    role:"2",
                    rerole:'被保险人',//客户角色类型:被保险人
                    coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                    sex: this.caseold.sex,
                    tel: this.caseold.tel,
                    clientType:  this.caseold.clientType,
                    coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold.customer_type,//客户类型
                    coustomer_email:this.caseold.coustomer_email,//邮箱
                } 

                this.formItem1.coustomer_info.case2={
                    role:"3",
                    rerole:'车主',//客户角色类型:车主
                    coustomer_identifyType: this.caseold2.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold2.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold2.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold2.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold2.coustomer_mobile, //手机号
                    sex: this.caseold2.sex,
                    tel: this.caseold2.tel,
                    clientType:  this.caseold2.clientType,
                    coustomer_eamil: this.caseold2.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold2.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold2.customer_type,//客户类型
                    coustomer_email:this.caseold2.coustomer_email,//邮箱
                } 
            }
                // 当前包含投保人
            if(this.caseold.coustomer_role.includes('3')){
                this.formItem1.coustomer_info.case={
                    role:"1",
                    rerole:'投保人',//客户角色类型:投保人
                    coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                    sex: this.caseold.sex,
                    tel: this.caseold.tel,
                    clientType:  this.caseold.clientType,
                    coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold.customer_type,//客户类型
                    coustomer_email:this.caseold.coustomer_email,//邮箱
                }  
                this.formItem1.coustomer_info.case2={
                    role:"3",
                    rerole:'车主',//客户角色类型:投保人
                    coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                    sex: this.caseold.sex,
                    tel: this.caseold.tel,
                    clientType:  this.caseold.clientType,
                    coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold.customer_type,//客户类型
                    coustomer_email:this.caseold.coustomer_email,//邮箱
                } 

                this.formItem1.coustomer_info.case1={
                    role:"2",
                    rerole:'被保险人',//客户角色类型:被保险人
                    coustomer_identifyType: this.caseold1.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold1.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold1.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold1.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold1.coustomer_mobile, //手机号
                    sex: this.caseold1.sex,
                    tel: this.caseold1.tel,
                    clientType:  this.caseold1.clientType,
                    coustomer_eamil: this.caseold1.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold1.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold1.customer_type,//客户类型
                    coustomer_email:this.caseold1.coustomer_email,//邮箱
                } 
            }
        }
         // 长度为1
        if(this.caseold.coustomer_role.length==1){
            // 当前包含投保人
                this.formItem1.coustomer_info.case={
                    role:"1",
                    rerole:'投保人',//客户角色类型:投保人
                    coustomer_identifyType: this.caseold.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold.coustomer_mobile, //手机号
                    sex: this.caseold.sex,
                    tel: this.caseold.tel,
                    clientType:  this.caseold.clientType,
                    coustomer_eamil: this.caseold.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold.customer_type,//客户类型
                    coustomer_email:this.caseold.coustomer_email,//邮箱
                }  
                this.formItem1.coustomer_info.case1={
                    role:"2",
                    rerole:'被保险人',//客户角色类型:被保险人
                    coustomer_identifyType: this.caseold1.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold1.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold1.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold1.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold1.coustomer_mobile, //手机号
                    sex: this.caseold1.sex,
                    tel: this.caseold1.tel,
                    clientType:  this.caseold1.clientType,
                    coustomer_eamil: this.caseold1.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold1.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold1.customer_type,//客户类型
                    coustomer_email:this.caseold1.coustomer_email,//邮箱
                } 
                this.formItem1.coustomer_info.case2={
                    role:"3",
                    rerole:'车主',//客户角色类型:车主
                    coustomer_identifyType: this.caseold2.coustomer_identifyType, //证件类型
                    coustomer_identifyNumber: this.caseold2.coustomer_identifyNumber, //证件号码
                    coustomer_name: this.caseold2.coustomer_name, //名字
                    coustomer_nativePlace:this.caseold2.coustomer_nativePlace, //客户地址
                    coustomer_mobile:this.caseold2.coustomer_mobile, //手机号
                    sex: this.caseold2.sex,
                    tel: this.caseold2.tel,
                    clientType:  this.caseold2.clientType,
                    coustomer_eamil: this.caseold2.coustomer_eamil, //邮箱
                    coustomer_riskLevel:  this.caseold2.coustomer_riskLevel, //反洗钱风险等级
                    customer_type:this.caseold2.customer_type,//客户类型
                    coustomer_email:this.caseold2.coustomer_email,//邮箱
                } 
        }
          var _this = this;
          _this.$refs[name1].validate(valid => {
            if (valid) {
              _this.X1 = true;
            } else {
              _this.$Message.error("填写信息不完善");
              return
            }
          });
          _this.$refs[name2].validate(valid => {
            if (valid) {
              _this.X2 = true;
            } else {
              _this.$Message.error("填写信息不完善");
              return
            }
          });
          _this.$refs[name3].validate(valid => {
            if (valid) {
              _this.X3 = true;
            } else {
              _this.$Message.error("填写信息不完善");
              return
            }
          });
          console.log(_this.X1,_this.X2,_this.X3)
          if (_this.X2==true&&_this.X1==true&&_this.X3==true) {
                // 附加险
                _this.fujia.map(item => {
                if (item.check) {
                    _this.formItem1.policy_info.additional_risks.push(item);
                }
                });
                // 主险
                _this.main_risks.map(item => {
                if (item.index) {
                    _this.formItem1.policy_info.main_risks.push(item);
                }
                });
                // 不计免赔
                _this.buji.map(item => {
                    _this.formItem1.policy_info.disregard_deduction.push(item);
                });
                // 特约
                _this.formItem1.engage.map(item => {
                    _this.formItem1.policy_info.engage.push(item);
                });
            new Promise((resolve, reject) => {
              car_policy_entering(_this.formItem1)
                .then(response => {
                  if (response.data.err == 0) {
                    this.$Message.success(response.data.info);
                    this.$router.push({name:'bill_search'})
                  } else {
                    this.formItem1={
                type: "",
                agent_info: {
                agentTaxType: "", //渠道类型
                handlerName: "", //业务员
                agent_agentName: "", //代理人
                agent_agreementNo: "", //协议号
                agent_comName: "华农财产保险股份有限公司西华支公司", //归属机构
                agent_operatorCode: "", //操作员工号
                agent_operatorName: "" //操作员名称
                },
                car_info: {//车辆类型
                vehicleType: "", //车辆类型      
                car_energyTypes: "", //能源种类  
                plateType: "", //车牌号码   
                car_registerDate: "", //初登日期 
                car_registerDateall: "", //初登日期 
                car_plateNo: "豫", // 车牌号 
                car_vIN: "", //车架号        
                car_engine: "", //发动机号码  
                car_categoryName: "", //使用性持
                car_carName: "", //厂牌型号   
                car_model: "", //行驶证名称    
                car_approvedPassengersCapacity: "", //核定载客量   1
                car_purchasePrice: "", //新车采购价   
                car_unladenMass: "", //车重
                displacement: "", //排量
                approvedLoad: "", //荷载重量
                car_certificateNo: "", //行驶证发证日期 
                car_certificateNoall: "", //行驶证发证日期  
                car_approvedLoad: "", //吨位   
                car_simpleStadarCar: "", //功率L   
                car_displacement: "", //排量L  
                car_unladenMass: "", //整备质量(KG)   
                car_localModelCode: "", //车型代码    
                car_modelCode: "" //行业车型编码    
                },
                //客户信息
                coustomer_info: {
                case: {//第一角色
                    role:"1",
                    rerole:'投保人',//客户角色类型:被保险人
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
                case1: {//第二角色
                    role:"2",
                    rerole:'被保险人',//客户角色类型:投保人
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
                case2: {//第三角色
                    role:"3",
                    rerole:'车主',//客户角色类型:车主
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
                },
                engage: [//特约
                {
                    engageCode: "",//特约号    
                    engageDetail: "",//特约名称
                    engageTitle: "",//特约内容
                }
                ],
                policy_info: {//业务
                    relatedType: "", //业务类型
                    policy_type: "", //保险类型
                    proposalNo: "", //投保单号
                    policyNo: "", //保险单号
                    //商业险  //交强险
                    business_policy: {
                        policy_type: "", //保险类型
                        totalPremium: "", //商业险合计  和  保费
                        expiryDate: "", //终保日期
                        expiryDateall: "", //终保日期
                        validDate: "", //起保日期
                        validDateall:'',//起保日期
                        premiumCount: "", //整单折扣
                        totalStandardPremium: "", //基准保费
                        totalAdjustRate: "" //费率/调整系数
                    },
                    //交强险
                    car_policy: {
                        policy_type: "", //保险类型
                        totalPremium: "", //商业险合计  和  保费
                        expiryDate: "", //终保日期
                        expiryDateall: "", //终保日期
                        validDate: "", //起保日期
                        validDateall:'',//起保日期
                        premiumCount: "", //整单折扣
                        totalStandardPremium: "", //基准保费
                        totalAdjustRate: "" //费率/调整系数
                    },
                    //主险
                    tax: {
                        taxPayerName: "", //纳税人名称
                        taxPayerIdentityType: "", //纳税人证件类型
                        taxPayerIdentityNo: "", //纳税人证件号码
                        taxPayerIdentificationCode: "", //纳税人识别号
                        annualTaxAmount: "", //本年标准税款
                        annualTaxDue: "", //本年应交税款
                        sumOverdue: "", //往年补交
                        payment:"",//   滞纳金
                        taxConditionCode: "", //已交  未交  redio
                        sumTax: "", //总计金额
                        certificatenumber:"",//完税凭证号码	
                        authority:"",//税务机关代码
                        authorityname:"",//税务机关名称
                        cartype:"",//减免车型
                        reductionprogram:"",//减免税方案代码
                        reductionratio:"",//减免比例/金额
                        vouchernumber:"",//减免税凭证号
                    },
                    // 主险条约
                    main_risks: [],
                    // 附加险
                    additional_risks: [],
                    //不加免赔
                    disregard_deduction: [],
                    // 特约
                    engage: [],
                }
                // violation: [],
                //
            }
                    this.$Message.error(response.data.info);
                  }
                  resolve();
                })
                .catch(error => {
                  reject(error);
                });
            });
          }else{
              alert('请务必完整填写带 * 标记的表单')
              return;
          }
        },
        handleReset(name) {
            console.log(name,"mingaiz")
          this.$refs[name].resetFields();
        },
        
    
        teyueAdd() {
          this.formItem1.engage.push({
            engageCode: "",
            engageDetail: "",
            engageTitle: ""
          });
        },
        teyueRemove(index) {
          this.formItem1.engage.splice(index, 1);
        },
        //保险公司切换
        comChange(ev) {
          console.log(ev);
          if (ev.value) {
            // this.getOrg(ev.value)
            this.policy_types = ev.label;
          }
          //this.getThirdPro(cid)
        }
      },
    };
    </script>
    
    